50 HOME : PRINT TAB( 14);: INVERSE : PRINT "QUILT PROGRAM": NORMAL : PRINT : PRINT
60 CLEAR
70 PRINT TAB( 5)"1 FIGURE NUMBER OF BLOCKS": PRINT
80 PRINT TAB( 5)"2 FIGURE SIZE OF QUILT": PRINT
90 PRINT TAB( 5)"3 FIGURE SIZE OF BLOCK"
100 PRINT
110 PRINT TAB( 5)"4 FIGURE MATERIAL REQUIRED": PRINT
120 PRINT TAB( 5)"5 QUIT PROGRAM": PRINT
130 INVERSE : PRINT "ENTER SELECTION NUMBER:";: NORMAL : GET A$:A = VAL(A$): PRINT A
140 IF A <1 OR A >5 THEN PRINT "NUMBER NOT ACCEPTABLE. TRY AGAIN.": PRINT : GOTO 130
150 ON A GOTO 170,400,600,770,160
160 END
170 REM FIGURE NUMBER OF BLOCKS FOR QIVEN SIZE QUILT
180 HOME
190 PRINT "I WILL FIGURE THE NUMBER OF BLOCKS YOU WILL NEED TO COMPLETE A GIVEN SIZE QUILT. MAKE ALL ENTERIES IN INCHES."
200 PRINT : PRINT
210 INPUT "SIZE OF QUILT BLOCK ";B: PRINT
220 INPUT "LENGTH OF FINISHED QUILT ";L: PRINT
230 INPUT "WIDTH OF FINISHED QUILT ";W: PRINT
240 C = INT(L/B): REM # OF FULL BLOCKS LONG
250 E = INT(W/B): REM # OF FULL BLOCKS WIDE
260 PRINT
270 PRINT "A QUILT ";L;" INCHES LONG BY ";W;" INCHES WIDE WILL BE:"
280 PRINT TAB( 3)C" BLOCKS LONG"
290 PRINT TAB( 3)E" BLOCKS WIDE"
300 PRINT
310 PRINT : PRINT TAB( 3)"A TOTAL OF "C *E" BLOCKS WILL BE NEEDED."
320 PRINT
330 J = INT(L -(B *C)): IF J <1 THEN PRINT TAB( 3)"BORDER ON "L" INCH SIDE - 0 INCHES": GOTO 350
340 PRINT TAB( 3)"BORDER ON ";L;" INCH SIDE - " INT(J/2);" INCHES."
350 K = INT(W -(B *E)): IF K <1 THEN PRINT TAB( 3)"BORDER ON "W" INCH SIDE - 0 INCHES": GOTO 380
360 PRINT TAB( 3)"BORDER ON ";W;" INCH SIDE - " INT(K/2);" INCHES."
370 PRINT
380 VTAB 24: PRINT "PRESS RETURN TO CONTINUE";: GET A$
390 GOTO 50
400 REM FIGURE SIZE OF QUILT
410 HOME
420 PRINT "I WILL FIGURE THE SIZE OF QUILT GIVEN THE QUILT BLOCK SIZE AND BED SIZE. MAKE ALL ENTERIES IN INCHES.": PRINT
430 INPUT "SIZE OF QUILT BLOCK ";B: PRINT
440 INPUT "LENGTH OF BED ";L: PRINT
450 INPUT "WIDTH OF BED ";W: PRINT
460 QL = L +17:QW = W +34: REM ADDITIONAL INCHES FOR OVERHANG OF QUILT
470 C = INT(QL/B):E = INT(QW/B): REM # OF FULL BLOCKS LONG AND WIDE
480 PRINT "A BED "L" INCHES LONG AND "W" INCHES WIDE WILL NEED A QUILT:": PRINT
490 PRINT TAB( 3)QL" INCHES LONG"
500 PRINT TAB( 3)QW" INCHES WIDE"
510 PRINT TAB( 3)C *E" QUILT BLOCKS WILL BE NEEDED"
520 PRINT TAB( 6)C" QUILT BLOCKS LONG"
530 PRINT TAB( 6)E" QUILT BLOCKS WIDE"
540 J = INT(QL -(B *C)): IF J <1 THEN PRINT TAB( 3)"BORDER ON "QL" INCH SIDE - 0 INCHES": GOTO 560
550 PRINT TAB( 3)"BORDER ON "QL" INCH SIDE - " INT(J/2)" INCHES"
560 K = INT(QW -(B *E)): IF K <1 THEN PRINT TAB( 3)"BORDER ON "QW" INCH SIDE - 0 INCHES": GOTO 580
570 PRINT TAB( 3)"BORDER ON "QW" INCH SIDE - " INT(K/2)" INCHES"
580 VTAB 24: PRINT "PRESS RETURN TO CONTINUE";: GET A$: GOTO 50
590 REM FIGURE # OF BLOCKS NEEDED
600 HOME
610 PRINT "I WILL FIGURE THE SIZE OF BLOCKS NEEDED TO MAKE A GIVEN SIZE QUILT. I WILL EVEN TELL YOU IF YOU WILL HAVE A BORDER LEFT OVER ON EITHER LENGTH OR WIDTH."
620 PRINT : INPUT "LENGTH OF FINISHED QUILT ";L: PRINT
630 INPUT "WIDTH OF FINISHED QUILT ";W: PRINT
640 PRINT "PARDON ME WHILE I FIGURE THIS OUT.": FOR I = 1 TO 1000: NEXT
650 HOME
660 PRINT "QUILT "L" INCHES LONG BY "W" INCHES WIDE WILL TAKE THE FOLLOWING NUMBER OF BLOCKSLEAVING A BORDER ON EACH SIDE AS SHOWN:": PRINT
740 VTAB 24: PRINT "PRESS RETURN TO CONTINUE";: GET A$
750 GOTO 50
760 REM FIGURE MATERIAL REQUIREMENTS
770 HOME
780 PRINT "I WILL FIGURE THE AMOUNT OF FRABIC REQUIRED TO MAKE A QUILT IF YOU WILL GIVE ME SOME INFORMATION.": PRINT
790 PRINT "WHEN GIVING SIZE OF BLOCK, ADD SEAM ALLOWANCES AND ROUND UP TO THE NEXT HIGHER INCH. A 4 INCH SQUARE BLOCK WITH .25 INCH SEAMS WOULD BE 5 INCHES WIDE AND 5 INCHES LONG. THIS WILL ALLOW EXTRAFABRIC FOR RAGGED EDGES."
800 PRINT
810 INPUT "LENGTH OF QUILT BLOCK ";BL: PRINT
820 INPUT "WIDTH OF QUILT BLOCK ";BW: PRINT
830 INPUT "NUMBER OF BLOCKS NEEDED ";NO: PRINT
840 INPUT "WIDTH OF FABRIC ";FW: PRINT
850 A = INT(FW/BL)::A1 = INT(FW/BW):
860 AR = INT(FW -(A *BL)):AR1 = INT(FW -(A1 *BW)): IF AR1 <AR THEN A = A1:AW = BW: GOTO 890
870 AW = BL
880 REM A=# BLOCKS ACROSS WIDTH D=# BLOCKS ACROSS LENGTH